/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Alexey Chirkov
 */
@XmlRootElement
public class Task {

    @XmlElement(name = "argument1")
    private String sourceString = null;
    @XmlElement(name = "argument2")
    private int count = 0;
    @XmlElement
    private String result="";
    
    public void setSourceString(String sourceString) {
        this.sourceString = sourceString;
    }

    public void setCount(String countString) {

        this.count = Integer.parseInt(countString);
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getSourceString() {
        return sourceString;
    }

    public int getCount() {
        return count;
    }
 
    
    public String getResult() {
        return result;
    }
}
